﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MostPopularInterface
{
    class Program
    {
        static void Main(string[] args)
        {
            Garage auto = new Garage();

            foreach (Car item in auto)
            {   
                Console.WriteLine(item.Name+" "+item.MaxSpeed);
            }

            var family = new KikosFamily();
            foreach (var kid in family)
            {
                Console.WriteLine(kid);
            }

            var range = Enumerable.Range(0, 100);
            
            var page = 10;

            for (int i = 0; i < range.Count()/page; i++)
            {
                Console.Clear();
                foreach (var item in range.Skip(page * i).Take(page))
                {
                    Console.WriteLine(item);
                }
                Console.ReadKey();
            }

            

            Console.ReadLine();
        }
    }
}
